﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using Ionic.Zip;
namespace RomEditor
{
    public partial class plugins : Form
    {
        public plugins()
        {
            InitializeComponent();
        }

        private void plugins_Load(object sender, EventArgs e)
        {
            pluglist.Items.Add("asda");
            pluglist.Items[0].SubItems.Add("adsd");
            pluglist.Items[0].SubItems.Add("adsd");
            pluglist.Items[0].SubItems.Add("adsd");
            ListPlug();

        }
        private static void ListPlug()
        {

            try
            {

                DirectoryInfo[] DI = new DirectoryInfo(Application.StartupPath.ToString() + "/script").GetDirectories("*.*", SearchOption.AllDirectories);

                foreach (DirectoryInfo D1 in DI)
                {

                    Console.WriteLine(D1.FullName);
                    //MessageBox.Show(D1.FullName);

                }

            }

            catch (DirectoryNotFoundException dEX)
            {

                Console.WriteLine("Directory Not Found " + dEX.Message);

            }

            catch (Exception ex)
            {

                Console.WriteLine(ex.Message);

            }

        }
        private void hideplug_Click(object sender, EventArgs e)
        {
            this.Hide();
        }
    }
}
